feat: new edge function upload - #8326
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe deployment pipeline now hashes edge-function bundles from the edge-bundler manifest. It includes edge-function hashes in deployment requests and builds typed upload metadata. Upload dispatch supports edge functions with Estimated code review effort: 4 (Complex) | ~45 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
3732c4d to
ef45117
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/utils/deploy/hash-edge-functions.ts (1)
18-22: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueKeep implementation comments limited to rationale.
Lines 18-22 restate the manifest, hash, and upload sequence. Lines 27-30 restate the returned field names. Remove behavior narration and retain only non-obvious deployment rationale.
As per coding guidelines, “Do not write comments describing what the code does; make the code self-explanatory instead.”
Also applies to: 27-30
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/utils/deploy/hash-edge-functions.ts` around lines 18 - 22, In the edge-function hashing implementation, remove the behavior-narration comments around the manifest/hash/upload flow and the returned field definitions, including the comments near the manifest processing and lines 27-30. Retain only concise comments explaining non-obvious deployment rationale, such as why the bundler filename is not trusted or why all formats are declared.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/utils/deploy/hash-edge-functions.ts`:
- Around line 18-22: In the edge-function hashing implementation, remove the
behavior-narration comments around the manifest/hash/upload flow and the
returned field definitions, including the comments near the manifest processing
and lines 27-30. Retain only concise comments explaining non-obvious deployment
rationale, such as why the bundler filename is not trusted or why all formats
are declared.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d5b2fd2b-a1e6-4ac5-9d07-1565d713a835
📒 Files selected for processing (5)
src/utils/deploy/deploy-site.tssrc/utils/deploy/hash-edge-functions.tssrc/utils/deploy/upload-files.tstests/unit/utils/deploy/hash-edge-functions.test.tstests/unit/utils/deploy/upload-files.test.ts
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
netlify/blueprints(manual)
🤖 I have created a release *beep* *boop* --- ## [27.1.0](v27.0.3...v27.1.0) (2026-08-04) ### Features * new edge function upload ([#8326](#8326)) ([3f33c36](3f33c36)) ### Bug Fixes * reconstruct build_data when missing on direct-zip deploys ([#8353](#8353)) ([3b52aa0](3b52aa0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
🎉 Thanks for submitting a pull request! 🎉
Summary
Part of https://linear.app/netlify/issue/RUN-2937/implement-end-to-end-env-vars-plumbing-for-functions
Depends netlify/open-api#650 . This was published some time ago in
@netlify/open-api@2.57.0and indirectly was already updated in cli already (so no need to bump in this PR anymore):For us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)